package cn.iocoder.yudao.module.dbit.controller.admin.jobresumeinfo;

import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.dbit.controller.admin.jobresumeinfo.vo.JobResumeInfoPageReqVO;
import cn.iocoder.yudao.module.dbit.controller.admin.jobresumeinfo.vo.JobResumeInfoRespVO;
import cn.iocoder.yudao.module.dbit.controller.admin.jobresumeinfo.vo.JobResumeInfoSaveReqVO;
import cn.iocoder.yudao.module.dbit.controller.admin.jobresumeinfo.vo.StudentJobResumeInfoRespVO;
import cn.iocoder.yudao.module.dbit.dal.dataobject.jobresumeinfo.JobResumeInfoDO;
import cn.iocoder.yudao.module.dbit.service.jobresumeinfo.JobResumeInfoService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.io.IOException;

import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

@RestController
@RequestMapping("/dbit/student-job-resume-info")
@Validated
public class StudentJobResumeInfoController {

    @Resource
    private JobResumeInfoService jobResumeInfoService;

    @GetMapping("/page")
    @Operation(summary = "获得简历投递记录")
    public CommonResult<PageResult<StudentJobResumeInfoRespVO>> getStudentDeliveryRecord(@Valid JobResumeInfoPageReqVO pageReqVO) {
        PageResult<StudentJobResumeInfoRespVO> pageResult = jobResumeInfoService.getStudentDeliveryRecord(pageReqVO);
        return success(pageResult);
    }

}